package com.google.android.material.datepicker;

import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Paint;
import c.b.a.b.l;
import c.b.a.b.z.b;

final class c {

    /* renamed from: a  reason: collision with root package name */
    final b f2228a;

    /* renamed from: b  reason: collision with root package name */
    final b f2229b;

    /* renamed from: c  reason: collision with root package name */
    final b f2230c;

    /* renamed from: d  reason: collision with root package name */
    final b f2231d;
    final b e;
    final b f;
    final b g;
    final Paint h;

    c(Context context) {
        TypedArray obtainStyledAttributes = context.obtainStyledAttributes(b.c(context, c.b.a.b.b.materialCalendarStyle, h.class.getCanonicalName()), l.MaterialCalendar);
        this.f2228a = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_dayStyle, 0));
        this.g = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_dayInvalidStyle, 0));
        this.f2229b = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_daySelectedStyle, 0));
        this.f2230c = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_dayTodayStyle, 0));
        ColorStateList a2 = c.b.a.b.z.c.a(context, obtainStyledAttributes, l.MaterialCalendar_rangeFillColor);
        this.f2231d = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_yearStyle, 0));
        this.e = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_yearSelectedStyle, 0));
        this.f = b.a(context, obtainStyledAttributes.getResourceId(l.MaterialCalendar_yearTodayStyle, 0));
        Paint paint = new Paint();
        this.h = paint;
        paint.setColor(a2.getDefaultColor());
        obtainStyledAttributes.recycle();
    }
}
